package com.xy.mvvmdemo

import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.widget.TextView

/**
 * @ClassName CustomerTextView
 * @Author xy
 * @Date 2021/7/1 9:43
 * @Description TODO
 */
@SuppressLint("AppCompatCustomView")
class CustomerTextView: TextView {
    constructor(context: Context?) : super(context)
    constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
    constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
        context,
        attrs,
        defStyleAttr
    )

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        when(event?.action){

        }
        return super.onTouchEvent(event)
    }
}